<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vm结合rem去适配</title>
</head>
<body>
    <div class="main">
       <div class="item"></div>
       <div class="item"></div>
       <div class="item"></div>
       <div class="item"></div>
       <div class="item"></div>
    </div>

</body>

<style>
    html{
        /* 在375pxui稿件 26.66666vw 就表示100px */
        font-size: 26.666666vw;
    }

    .main{
        /**main为351px**/
        width:3.51rem;
        height: 370px;
        margin: 0 auto;
        background-color: aqua;
    }

    .main .item{
        width: 0.702rem;
        height: 0.702rem;
        background-color: brown;
        float: left;
        
    }



</style>
</html>